package moe.oil.exception.user;

import moe.oil.dto.user.UserDTO;
import moe.oil.exception.ErrorType;
import moe.oil.exception.ServiceException;
import org.springframework.http.HttpStatus;


public class UserLoginErrorException extends ServiceException {
    public UserLoginErrorException(UserDTO userDTO, String username) {
        super(
                String.format("账号 ： %s 登录失败！  ", username),
                HttpStatus.UNAUTHORIZED,
                ErrorType.USER_LOGIN_ERROR,
                userDTO
        );
    }
}
